<template>
  <div class="page_root" :key="queryUpdateFlag" data-page-name="员工周报" data-page-identification="w_0t99ah6jy8">
    <a-spin :spinning="pageLoading.loading" :tip="pageLoading.tip">
      <!-- begin vid_2w3ovxkl7i 工作内容 -->
      <a-modal
        class="vid_2w3ovxkl7i"
        v-model:visible="vid_2w3ovxkl7i_props.visible"
        :centered="true"
        :title="'工作内容'"
        :maskClosable="false"
        :width="1200"
        @cancel="handle_vid_2w3ovxkl7i_cancel"
        @ok="handle_vid_2w3ovxkl7i_ok"
      >
        <!-- begin vid_7g8fn88587 容器_hocg770el6 -->
        <al-box class="vid_7g8fn88587">
          <!-- begin vid_32wupwqleq 表格_7qs7h4kybw -->
          <!-- 表格_7qs7h4kybw -->
          <a-table
            class="vid_32wupwqleq"
            :totalNumber="vid_32wupwqleq_props.totalNumber"
            :bordered="true"
            :editRowSaveLoading="vid_32wupwqleq_props.editRowSaveLoading"
            :sorter="vid_32wupwqleq_props.sorter"
            :currentRow="vid_32wupwqleq_props.currentRow"
            :selectedRowList="vid_32wupwqleq_props.selectedRowList"
            :data-source="vid_32wupwqleq_options()"
            @change="handle_vid_32wupwqleq_change"
            :columns="vid_32wupwqleq_columns"
            :pagination="false"
            row-key="id"
            @resizeColumn="(w, col) => handleResizeColumn(w, col, 'vid_32wupwqleq')"
            :scroll="{ x: 'max-content', y: '600px', scrollToFirstRowOnChange: true, }"
            :row-class-name="(_record, index) => (index % 2 === 1 ? 'table-striped-even' : 'table-striped-odd')"
          >
            <template #headerCell="{ title, column }">
              <TableHeaderCell :title="title" :column="column" />
            </template>
            <template #bodyCell="{ text, column, record, index }">
              <!-- 序号列 -->
              <template v-if="column && column.dataIndex === 'vid_32wupwqleq_serialNumber'">
                {{ index + 1 }}
              </template>
              <!-- {"type":"value","dataType":"STRING","rawDataType":"STRING","link":"","value":"时间"} 列内容 -->
              <template v-if="column.dataIndex === 'dailyDate' && !column.customRender">
                <text-table-cell
                  :rowData="record"
                  :conditionValueMap="vid_32wupwqleq_props.boundaryValueMap"
                  :dataSource="vid_32wupwqleq_props.contentDataSource[column.dataIndex]"
                  :columnsConfig="column"
                  :value="text"
                />
              </template>
              <!-- {"type":"value","dataType":"STRING","rawDataType":"STRING","link":"","value":"工作内容"} 列内容 -->
              <template v-if="column.dataIndex === 'dailyContent' && !column.customRender">
                <text-table-cell
                  :rowData="record"
                  :conditionValueMap="vid_32wupwqleq_props.boundaryValueMap"
                  :dataSource="vid_32wupwqleq_props.contentDataSource[column.dataIndex]"
                  :columnsConfig="column"
                  :value="text"
                />
              </template>
            </template>
          </a-table>
          <!-- end vid_32wupwqleq 表格_7qs7h4kybw -->
        </al-box>
        <!-- end vid_7g8fn88587 容器_hocg770el6 -->
      </a-modal>
      <!-- end vid_2w3ovxkl7i 工作内容 -->
      <!-- begin vid_hofoolfsxh 布局容器_j7ks7ygx1q -->
      <a-row class="vid_hofoolfsxh" :gutter="16" :slots="'4:20'">
        <a-col :span="4">
          <!-- begin vid_amn8b36obs 容器_2dttoplo4z -->
          <al-box class="vid_amn8b36obs">
            <!-- begin vid_2jde4eeige 容器_udcgou17ra -->
            <al-box class="vid_2jde4eeige">
              <!-- begin vid_y7vcxwycjn 员工周报 -->
              <span class="vid_y7vcxwycjn"> 员工周报 </span>
              <!-- end vid_y7vcxwycjn 员工周报 -->
            </al-box>
            <!-- end vid_2jde4eeige 容器_udcgou17ra -->
            <!-- begin vid_e57pxzj5tq 容器_wr6je6h3qt -->
            <al-box class="vid_e57pxzj5tq">
              <!-- begin vid_kjy9opxgxl 输入框_rv22q2gz17 -->
              <a-input autocomplete="off" class="vid_kjy9opxgxl" v-model:value="vid_kjy9opxgxl_props.value" :placeholder="'请输入关键词查询'" @change="handle_vid_kjy9opxgxl_change">
                <template #suffix
                  ><span role="img" class="anticon"
                    ><embed
                      style="width: 1em;height:1em;"
                      src="" /></span
                ></template>
              </a-input>
              <!-- end vid_kjy9opxgxl 输入框_rv22q2gz17 -->
            </al-box>
            <!-- end vid_e57pxzj5tq 容器_wr6je6h3qt -->
            <!-- begin vid_8kjlglq0ja 容器_y1uevcvi3k -->
            <al-box class="vid_8kjlglq0ja">
              <!-- begin vid_t5g2fxyxpm 树形控件_k1olvxdw99 -->
              <al-tree-extend
                class="vid_t5g2fxyxpm"
                v-model:checkedKeys="vid_t5g2fxyxpm_props.checkedKeys"
                v-model:selectedKeys="vid_t5g2fxyxpm_props.selectedKeys"
                v-model:expandedKeys="vid_t5g2fxyxpm_props.expandedKeys"
                :fieldNames="{'children':'children','title':'name','key':'id'}"
                :selectedBackgroundColor="'#EBF1FF'"
                :defaultExpandAll="true"
                :backgroundColor="'#F5F5F5'"
                :lazyParams="vid_t5g2fxyxpm_props.lazyParams"
                :clickNode="vid_t5g2fxyxpm_props.clickNode"
                :selected="vid_t5g2fxyxpm_props.selected"
                :treeData="vid_t5g2fxyxpm_options()"
                @select="handle_vid_t5g2fxyxpm_select"
                :style="vid_t5g2fxyxpm_style"
              >
              </al-tree-extend>
              <!-- end vid_t5g2fxyxpm 树形控件_k1olvxdw99 -->
            </al-box>
            <!-- end vid_8kjlglq0ja 容器_y1uevcvi3k -->
          </al-box>
          <!-- end vid_amn8b36obs 容器_2dttoplo4z -->
        </a-col>
        <a-col :span="20">
          <!-- begin vid_zib6f6eiui 容器_54ojo85civ -->
          <al-box class="vid_zib6f6eiui">
            <!-- begin vid_u87cviwdjq 表单容器_xmqxnbg57p -->
            <a-form ref="vid_u87cviwdjq_ref" class="vid_u87cviwdjq" :model="v_owod4ao7sh" :formModel="vid_u87cviwdjq_props.formModel">
              <!-- begin vid_egh99ca41r 布局容器_1ee47jrmqd -->
              <a-row class="vid_egh99ca41r" :gutter="16" :slots="'6:6:6:6'">
                <a-col :span="6">
                  <!-- begin vid_j2ouswmj9h 表单项容器_z4t6mahij7 -->
                  <a-form-item name="f_0riaadizhb" :rules="v_owod4ao7sh_rules[`f_0riaadizhb`]" class="vid_j2ouswmj9h" :label-col='{"span":7}' :wrapper-col='{"span":17}'>
                    <!-- begin vid_6xij7n7dth 日期_dateOption -->
                    <a-date-picker
                      class="vid_6xij7n7dth"
                      :getPopupContainer="(node) => node.parentNode"
                      v-model:value="v_owod4ao7sh.f_0riaadizhb"
                      :format="'YYYY-MM'"
                      :valueFormat="'YYYY-MM'"
                      :placeholder="'请选择'"
                      :picker="'month'"
                      :showTime="vid_6xij7n7dth_props.showTime"
                    >
                    </a-date-picker>
                    <!-- end vid_6xij7n7dth 日期_dateOption -->
                    <template #label>
                      <!-- begin vid_p6utm3arl2 日期选择 -->
                      <span class="vid_p6utm3arl2"> 日期选择 </span>
                      <!-- end vid_p6utm3arl2 日期选择 -->
                    </template>
                  </a-form-item>
                  <!-- end vid_j2ouswmj9h 表单项容器_z4t6mahij7 -->
                </a-col>
                <a-col :span="6">
                  <!-- begin vid_tjdkn9kyp0 表单项容器_szaqfps5e3 -->
                  <a-form-item name="z_4wr4sn3b9l" :rules="v_owod4ao7sh_rules[`z_4wr4sn3b9l`]" class="vid_tjdkn9kyp0" :label-col='{"span":7}' :wrapper-col='{"span":17}'>
                    <!-- begin vid_h1q7gdhl9y 下拉框_week -->
                    <a-select
                      class="vid_h1q7gdhl9y"
                      :getPopupContainer="(node) => node.parentNode"
                      v-model:value="v_owod4ao7sh.z_4wr4sn3b9l"
                      :showArrow="true"
                      :filterOption="(input, option) => {
          return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0;
        }"
                      :showSearch="true"
                      :placeholder="'请选择'"
                      :allowClear="true"
                      :searchValue="vid_h1q7gdhl9y_props.searchValue"
                      :selected="vid_h1q7gdhl9y_props.selected"
                      :options="vid_h1q7gdhl9y_options()"
                      @focus="handle_vid_h1q7gdhl9y_focus"
                      @change="handle_vid_h1q7gdhl9y_change"
                      @search="handle_vid_h1q7gdhl9y_search"
                    >
                    </a-select>
                    <!-- end vid_h1q7gdhl9y 下拉框_week -->
                    <template #label>
                      <!-- begin vid_z0ipebnh1q 周选择 -->
                      <span class="vid_z0ipebnh1q"> 周选择 </span>
                      <!-- end vid_z0ipebnh1q 周选择 -->
                    </template>
                  </a-form-item>
                  <!-- end vid_tjdkn9kyp0 表单项容器_szaqfps5e3 -->
                </a-col>
                <a-col :span="6">
                  <!-- begin vid_4fgjepmwzb 表单项容器_4xg4y05i0h -->
                  <a-form-item name="o_xc3f3gdx8n" :rules="v_owod4ao7sh_rules[`o_xc3f3gdx8n`]" class="vid_4fgjepmwzb" :label-col='{"span":7}' :wrapper-col='{"span":17}'>
                    <!-- begin vid_bp126nku1k 下拉框_z0o42ctc2s -->
                    <a-select
                      class="vid_bp126nku1k"
                      :getPopupContainer="(node) => node.parentNode"
                      v-model:value="v_owod4ao7sh.o_xc3f3gdx8n"
                      :showArrow="true"
                      :filterOption="(input, option) => {
          return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0;
        }"
                      :showSearch="true"
                      :placeholder="'请选择'"
                      :allowClear="true"
                      :searchValue="vid_bp126nku1k_props.searchValue"
                      :selected="vid_bp126nku1k_props.selected"
                      :options="vid_bp126nku1k_options()"
                      @focus="handle_vid_bp126nku1k_focus"
                      @change="handle_vid_bp126nku1k_change"
                      @search="handle_vid_bp126nku1k_search"
                    >
                    </a-select>
                    <!-- end vid_bp126nku1k 下拉框_z0o42ctc2s -->
                    <template #label>
                      <!-- begin vid_plptce3q9c 简单文本_0omcrdwd3l -->
                      <span class="vid_plptce3q9c"> 项目代号 </span>
                      <!-- end vid_plptce3q9c 简单文本_0omcrdwd3l -->
                    </template>
                  </a-form-item>
                  <!-- end vid_4fgjepmwzb 表单项容器_4xg4y05i0h -->
                </a-col>
                <a-col :span="6">
                  <!-- begin vid_e0486mazuj 按钮_2vt6be4nsb -->
                  <a-button class="vid_e0486mazuj" :type="'primary'" @click="handle_vid_e0486mazuj_click"> 查询 </a-button>
                  <!-- end vid_e0486mazuj 按钮_2vt6be4nsb -->
                  <!-- begin vid_4bsd11um9o 按钮_nazjzayszb -->
                  <a-button class="vid_4bsd11um9o" @click="handle_vid_4bsd11um9o_click"> 重置 </a-button>
                  <!-- end vid_4bsd11um9o 按钮_nazjzayszb -->
                </a-col>
              </a-row>
              <!-- end vid_egh99ca41r 布局容器_1ee47jrmqd -->
            </a-form>
            <!-- end vid_u87cviwdjq 表单容器_xmqxnbg57p -->
            <!-- begin vid_0ez399cv7q 容器_027iz3irn4 -->
            <al-box class="vid_0ez399cv7q"> </al-box>
            <!-- end vid_0ez399cv7q 容器_027iz3irn4 -->
            <!-- begin vid_7muz277z0f 表格_4d5qi2p6hg -->
            <!-- 表格_4d5qi2p6hg -->
            <a-table
              class="vid_7muz277z0f"
              :totalNumber="vid_7muz277z0f_props.totalNumber"
              :bordered="true"
              :editRowSaveLoading="vid_7muz277z0f_props.editRowSaveLoading"
              :sorter="vid_7muz277z0f_props.sorter"
              :currentRow="vid_7muz277z0f_props.currentRow"
              :selectedRowList="vid_7muz277z0f_props.selectedRowList"
              :data-source="vid_7muz277z0f_options()"
              @change="handle_vid_7muz277z0f_change"
              :columns="vid_7muz277z0f_columns"
              :pagination="vid_7muz277z0f_pagination"
              row-key="id"
              @resizeColumn="(w, col) => handleResizeColumn(w, col, 'vid_7muz277z0f')"
              :scroll="{ x: 'max-content', scrollToFirstRowOnChange: true, }"
              :row-class-name="(_record, index) => (index % 2 === 1 ? 'table-striped-even' : 'table-striped-odd')"
            >
              <template #headerCell="{ title, column }">
                <TableHeaderCell :title="title" :column="column" />
              </template>
              <template #bodyCell="{ text, column, record, index }">
                <!-- 操作列 -->
                <div v-if="column.dataIndex === 'vid_7muz277z0f_operation'" class="operation-cell">
                  <!-- 默认分组 -->
                  <span>
                    <a-button type="link" @click="handle_vid_7muz277z0f_clickBtn_524w7sdqlt(record)">工作内容</a-button>
                  </span>
                </div>

                <!-- 序号列 -->
                <template v-if="column && column.dataIndex === 'vid_7muz277z0f_serialNumber'">
                  {{ index + 1 }}
                </template>
                <!-- {"type":"value","dataType":"STRING","rawDataType":"STRING","link":"","value":"部门"} 列内容 -->
                <template v-if="column.dataIndex === 'department' && !column.customRender">
                  <text-table-cell
                    :rowData="record"
                    :conditionValueMap="vid_7muz277z0f_props.boundaryValueMap"
                    :dataSource="vid_7muz277z0f_props.contentDataSource[column.dataIndex]"
                    :columnsConfig="column"
                    :value="text"
                  />
                </template>
                <!-- {"type":"value","dataType":"STRING","rawDataType":"STRING","link":"","value":"人员"} 列内容 -->
                <template v-if="column.dataIndex === 'reportedBy' && !column.customRender">
                  <text-table-cell
                    :rowData="record"
                    :conditionValueMap="vid_7muz277z0f_props.boundaryValueMap"
                    :dataSource="vid_7muz277z0f_props.contentDataSource[column.dataIndex]"
                    :columnsConfig="column"
                    :value="text"
                  />
                </template>
                <!-- {"type":"value","dataType":"STRING","rawDataType":"STRING","link":"","value":"周工时 "} 列内容 -->
                <template v-if="column.dataIndex === 'weeklyWorkingHours' && !column.customRender">
                  <number-table-cell
                    :rowData="record"
                    :conditionValueMap="vid_7muz277z0f_props.boundaryValueMap"
                    :dataSource="vid_7muz277z0f_props.contentDataSource[column.dataIndex]"
                    :columnsConfig="column"
                    :value="text"
                  />
                </template>
                <!-- {"type":"value","dataType":"STRING","rawDataType":"STRING","link":"","value":"项目代号"} 列内容 -->
                <template v-if="column.dataIndex === 'projectName' && !column.customRender">
                  <text-table-cell
                    :rowData="record"
                    :conditionValueMap="vid_7muz277z0f_props.boundaryValueMap"
                    :dataSource="vid_7muz277z0f_props.contentDataSource[column.dataIndex]"
                    :columnsConfig="column"
                    :value="text"
                  />
                </template>
                <!-- {"type":"value","dataType":"STRING","rawDataType":"STRING","link":"","value":"项目阶段"} 列内容 -->
                <template v-if="column.dataIndex === 'milepostName' && !column.customRender">
                  <text-table-cell
                    :rowData="record"
                    :conditionValueMap="vid_7muz277z0f_props.boundaryValueMap"
                    :dataSource="vid_7muz277z0f_props.contentDataSource[column.dataIndex]"
                    :columnsConfig="column"
                    :value="text"
                  />
                </template>
                <!-- {"type":"value","dataType":"STRING","rawDataType":"STRING","link":"","value":"任务名称"} 列内容 -->
                <template v-if="column.dataIndex === 'taskName' && !column.customRender">
                  <text-table-cell
                    :rowData="record"
                    :conditionValueMap="vid_7muz277z0f_props.boundaryValueMap"
                    :dataSource="vid_7muz277z0f_props.contentDataSource[column.dataIndex]"
                    :columnsConfig="column"
                    :value="text"
                  />
                </template>
                <!-- {"type":"value","dataType":"STRING","rawDataType":"STRING","link":"","value":"任务工时"} 列内容 -->
                <template v-if="column.dataIndex === 'plannedInputHours' && !column.customRender">
                  <number-table-cell
                    :rowData="record"
                    :conditionValueMap="vid_7muz277z0f_props.boundaryValueMap"
                    :dataSource="vid_7muz277z0f_props.contentDataSource[column.dataIndex]"
                    :columnsConfig="column"
                    :value="text"
                  />
                </template>
                <!-- {"type":"value","dataType":"STRING","rawDataType":"STRING","link":"","value":"任务状态"} 列内容 -->
                <template v-if="column.dataIndex === 'taskStatus' && !column.customRender">
                  <text-table-cell
                    :rowData="record"
                    :conditionValueMap="vid_7muz277z0f_props.boundaryValueMap"
                    :dataSource="vid_7muz277z0f_props.contentDataSource[column.dataIndex]"
                    :columnsConfig="column"
                    :value="text"
                  />
                </template>
                <!-- {"type":"value","dataType":"STRING","rawDataType":"STRING","link":"","value":"任务工时投入情况"} 列内容 -->
                <template v-if="column.dataIndex === 'stateInput' && !column.customRender">
                  <text-table-cell
                    :rowData="record"
                    :conditionValueMap="vid_7muz277z0f_props.boundaryValueMap"
                    :dataSource="vid_7muz277z0f_props.contentDataSource[column.dataIndex]"
                    :columnsConfig="column"
                    :value="text"
                  />
                </template>
                <!-- {"type":"value","dataType":"STRING","rawDataType":"STRING","link":"","value":"计划完成时间"} 列内容 -->
                <template v-if="column.dataIndex === 'endTime' && !column.customRender">
                  <date-picker-table-cell
                    :rowData="record"
                    :conditionValueMap="vid_7muz277z0f_props.boundaryValueMap"
                    :dataSource="vid_7muz277z0f_props.contentDataSource[column.dataIndex]"
                    :columnsConfig="column"
                    :value="text"
                  />
                </template>
                <!-- {"type":"value","dataType":"STRING","rawDataType":"STRING","link":"","value":"实际完成时间"} 列内容 -->
                <template v-if="column.dataIndex === 'taskFinishTime' && !column.customRender">
                  <text-table-cell
                    :rowData="record"
                    :conditionValueMap="vid_7muz277z0f_props.boundaryValueMap"
                    :dataSource="vid_7muz277z0f_props.contentDataSource[column.dataIndex]"
                    :columnsConfig="column"
                    :value="text"
                  />
                </template>
                <!-- {"type":"value","dataType":"STRING","rawDataType":"STRING","link":"","value":"taskId"} 列内容 -->
                <template v-if="column.dataIndex === 'taskId' && !column.customRender">
                  <text-table-cell
                    :rowData="record"
                    :conditionValueMap="vid_7muz277z0f_props.boundaryValueMap"
                    :dataSource="vid_7muz277z0f_props.contentDataSource[column.dataIndex]"
                    :columnsConfig="column"
                    :value="text"
                  />
                </template>
              </template>
            </a-table>
            <!-- end vid_7muz277z0f 表格_4d5qi2p6hg -->
          </al-box>
          <!-- end vid_zib6f6eiui 容器_54ojo85civ -->
        </a-col>
      </a-row>
      <!-- end vid_hofoolfsxh 布局容器_j7ks7ygx1q -->
    </a-spin>
  </div>
</template>
<script setup lang="tsx">
  import {
      h, ref, reactive, toRaw, markRaw, watch, computed,
      onBeforeMount, onMounted, onBeforeUnmount, onUnmounted, onActivated, onDeactivated
    } from "vue";
    import { useRoute, useRouter } from 'vue-router';
    const router = useRouter();
    const route = useRoute();
    import { get, post, put, del, request, requestWithHeaders } from '@/utils/http/Axios';
    import { cloneDeep, localGet, merge, getDifferenceArray, traversalTreeStructure, checkCaseCondition, renderStringInTemplate, handleBreadcrumbJump, throttle, permission, getComponentParamsValue } from '@/utils/index';
    import { isNullOrEmpty, isEmptyArr, isNullOrUnDef, isContained, isArray, isEmpty, isObject } from '@/utils/is';
    import dayjs from 'dayjs';
    import { getPagePcChartsDataSourceConvert } from '@/utils/chart';
    import { message, notification, Modal } from 'ant-design-vue'
    import { propertyFormatByNumber, propertyFormatByPercentage, propertyFormatByDate, parseSubFromDataList } from '@/utils/format';
    import colorTheme from '@/design/custom-theme.json';
    
    import UserTableRecords from '@/model/UserTableRecords';
    import { getAppBaseUrl } from '@/utils/index';
    import { sendToken } from "@/hooks/useIframeToken";
    import { useSystemStore } from "@/store/modules/system";
    const systemStore = useSystemStore();
    

  import TextTableCell from '@/components/page/tableCell/text.vue';
  import TooltipTableCell from '@/components/page/tableCell/tooltip.vue';
  import NumberTableCell from '@/components/page/tableCell/number.vue';
  import ProgressTableCell from '@/components/page/tableCell/progress.vue';
  import OptionsTableCell from '@/components/page/tableCell/options.vue';
  import MultipleOptionsTableCell from '@/components/page/tableCell/multipleOptions.vue';
  import DatePickerTableCell from '@/components/page/tableCell/datePicker.vue';
  import RangePickerTableCell from '@/components/page/tableCell/rangePicker.vue';
  import RangeNumberTableCell from '@/components/page/tableCell/rangeNumber.vue';
  import BoolTableCell from '@/components/page/tableCell/bool.vue';
  import TableHeaderCell from '@/components/page/TableHeaderCell.vue';

      // 获取传入的流程ID和组件参数
      const props = defineProps({
            'processInstanceId': {
            type: [String,Number,Boolean],
            default: undefined,
        },
      })
      const immediateWatch = (source, callback) => {
        watch(source, callback, {deep: true,immediate: true })
      }



  /* -------------------------- 属性定义 -------------------------- */

      const setTimeOutList = [];
      const pageLoading = reactive({
        loading: false,
        tip: undefined
      });
      const authInfo = localGet('app-user-store');

    const vid_2w3ovxkl7i_props = reactive({
          visible: false,
      confirmLoading: undefined,
  })

    const vid_32wupwqleq_props = reactive({
          systemSort: [],
      sorter: {},
      editRowSaveLoading: {},
      currentRow: {"dailyDate":"","dailyContent":""},
      selectedRowList: {"dailyDate":[],"dailyContent":[]},
      totalNumber: undefined,
      rt_tableConfig: {"layout":{"showHeader":true,"sticky":false,"operationColumnFixed":"default"},"pagination":{"current":1,"pageSizeOptions":"10,20,30,40","enable":false,"showTotal":false,"hideOnSinglePage":false,"pageSize":10,"simple":false,"sync":false,"showQuickJumper":false,"showSizeChanger":false},"scroll":{"x":"max-content","y":"600px","scrollToFirstRowOnChange":true},"style":{"contentStyle":{"borderColor":"#D9D9D9","enableContentStyle":true,"fontFamily":"arial, helvetica, \"microsoft yahei\"","lintHeight":40,"borderWidth":1,"evenLineBackColor":"#F8FAFC","textWeight":"400","fontSize":14,"oddLineBackColor":"#FFFFFF","textColor":"#262626"},"paginationStyle":{"layout":"bottomRight","size":"default"},"headerStyle":{"borderColor":"#D9D9D9","backgroundColor":"#3875FF","fontFamily":"arial, helvetica, \"microsoft yahei\"","lintHeight":40,"borderWidth":1,"textWeight":"600","fontSize":14,"enableTextStyle":true,"textColor":"#FFFFFF"}},"basic":{"rowSelection":false,"rowEdit":{"cancelText":"取消","editText":"编辑","saveText":"保存"},"title":"","showSequenceNumber":false,"rowKey":"id"}},
      columnList: [
          {
            id: 'oxhwdoefsp',
            dataIndex: 'dailyDate',
            headerComment: false,
            title: '时间',
            ellipsis: false,
            headerOverflow: 'ellipsis',
            contentAlign: 'left',
            customHeaderCell: () => ({ style: { 'text-align': 'left' } }),
            rowEditConditions: [],
            contentType: 'TEXT',
            contentConfig: {"conditionStyle":[],"boolConfig":"collection"},
            // 使用插槽的列，设置单元格padding为0，padding样式在内容插槽中已加，以便内容插槽设置背景色时可以占满整个单元格；该样式会在计算属性生成列配置时加入customCell
            customCellStyle: { padding: 0 },
            resizable: true,
          },
          {
            id: 'l0zzuxiqav',
            dataIndex: 'dailyContent',
            headerComment: false,
            title: '工作内容',
            ellipsis: false,
            headerOverflow: 'ellipsis',
            contentAlign: 'left',
            customHeaderCell: () => ({ style: { 'text-align': 'left' } }),
            rowEditConditions: [],
            contentType: 'TEXT',
            contentConfig: {"conditionStyle":[],"boolConfig":"collection"},
            // 使用插槽的列，设置单元格padding为0，padding样式在内容插槽中已加，以便内容插槽设置背景色时可以占满整个单元格；该样式会在计算属性生成列配置时加入customCell
            customCellStyle: { padding: 0 },
            width: 800,
            resizable: true,
          },

        ],
      rawColumnList: [],
      // 进行行合并所需的排序规则，必须将其加到排序字段的前面，以实现合并单元格
      rowMergeSort: [],
      // 完整的排序规则：需要将行合并的排序规则和排序字段的排序规则赋给该属性；调接口时会使用其作为排序条件
      systemSort: [],
      // 条件格式需要的边界值映射：key为边界值id，value为边界值数据
      boundaryValueMap: {},
      // 表格单元格内容渲染需要的外部数据源：key为列，value为该列单元格的外部数据源配置
      contentDataSource: {},
  })

    const vid_u87cviwdjq_props = reactive({
          formModel: {"o_xc3f3gdx8n":"","z_4wr4sn3b9l":"","f_0riaadizhb":""},
  })

    const vid_bp126nku1k_props = reactive({
          selected: {"label":"","value":"","option":{}},
      searchValue: undefined,
      value: undefined,
  })

    const vid_h1q7gdhl9y_props = reactive({
          selected: {"label":"","value":"","option":{}},
      searchValue: undefined,
      value: undefined,
  })

    const vid_6xij7n7dth_props = reactive({
          showTime: undefined,
      value: undefined,
  })

    const vid_7muz277z0f_props = reactive({
          systemSort: [],
      sorter: {},
      editRowSaveLoading: {},
      currentRow: {"department":"","reportedBy":"","weeklyWorkingHours":"","projectName":"","milepostName":"","taskName":"","plannedInputHours":"","taskStatus":"","stateInput":"","endTime":"","taskFinishTime":"","taskId":""},
      selectedRowList: {"milepostName":[],"taskFinishTime":[],"taskName":[],"weeklyWorkingHours":[],"endTime":[],"department":[],"reportedBy":[],"projectName":[],"taskStatus":[],"taskId":[],"plannedInputHours":[],"stateInput":[]},
      totalNumber: undefined,
      rt_tableConfig: {"layout":{"showHeader":true,"sticky":false,"operationColumnFixed":"right"},"pagination":{"current":1,"pageSizeOptions":"10,20,30,40","enable":true,"showTotal":true,"hideOnSinglePage":false,"pageSize":"15","simple":false,"sync":true,"showQuickJumper":true,"showSizeChanger":false},"scroll":{"x":"max-content","y":"","scrollToFirstRowOnChange":true},"style":{"contentStyle":{"borderColor":"#D9D9D9","enableContentStyle":true,"fontFamily":"arial, helvetica, \"microsoft yahei\"","lintHeight":40,"borderWidth":1,"evenLineBackColor":"#F8FAFC","textWeight":"400","fontSize":14,"oddLineBackColor":"#FFFFFF","textColor":"#262626"},"paginationStyle":{"layout":"bottomRight","size":"default"},"headerStyle":{"borderColor":"#D9D9D9","backgroundColor":"#3875FF","fontFamily":"arial, helvetica, \"microsoft yahei\"","lintHeight":40,"borderWidth":1,"textWeight":"600","fontSize":14,"enableTextStyle":true,"textColor":"#FFFFFF"}},"basic":{"rowSelection":false,"rowEdit":{"cancelText":"取消","editText":"编辑","saveText":"保存"},"title":"","showSequenceNumber":false,"rowKey":"id"}},
      columnList: [
          {
            id: 'lf58q44879',
            dataIndex: 'department',
            headerComment: false,
            title: '部门',
            ellipsis: true,
            headerOverflow: 'ellipsis',
            contentAlign: 'left',
            customHeaderCell: () => ({ style: { 'text-align': 'left' } }),
            rowEditConditions: [],
            contentType: 'TEXT',
            contentConfig: {"conditionStyle":[],"boolConfig":"collection"},
            // 使用插槽的列，设置单元格padding为0，padding样式在内容插槽中已加，以便内容插槽设置背景色时可以占满整个单元格；该样式会在计算属性生成列配置时加入customCell
            customCellStyle: { padding: 0 },
            width: 200,
            resizable: true,
          },
          {
            id: '52zxm23yvb',
            dataIndex: 'reportedBy',
            headerComment: false,
            title: '人员',
            ellipsis: false,
            headerOverflow: 'ellipsis',
            contentAlign: 'left',
            customHeaderCell: () => ({ style: { 'text-align': 'left' } }),
            rowEditConditions: [],
            contentType: 'TEXT',
            contentConfig: {"conditionStyle":[],"boolConfig":"collection"},
            // 使用插槽的列，设置单元格padding为0，padding样式在内容插槽中已加，以便内容插槽设置背景色时可以占满整个单元格；该样式会在计算属性生成列配置时加入customCell
            customCellStyle: { padding: 0 },
            resizable: true,
          },
          {
            id: '1ore5c8a6d',
            dataIndex: 'weeklyWorkingHours',
            headerComment: false,
            title: '周工时 ',
            ellipsis: false,
            headerOverflow: 'ellipsis',
            contentAlign: 'left',
            customHeaderCell: () => ({ style: { 'text-align': 'left' } }),
            rowEditConditions: [],
            contentType: 'NUMBER',
            contentConfig: {"conditionStyle":[],"boolConfig":"collection"},
            // 使用插槽的列，设置单元格padding为0，padding样式在内容插槽中已加，以便内容插槽设置背景色时可以占满整个单元格；该样式会在计算属性生成列配置时加入customCell
            customCellStyle: { padding: 0 },
            resizable: true,
          },
          {
            id: '8dw48e7i9s',
            dataIndex: 'projectName',
            headerComment: false,
            title: '项目代号',
            ellipsis: false,
            headerOverflow: 'ellipsis',
            contentAlign: 'left',
            customHeaderCell: () => ({ style: { 'text-align': 'left' } }),
            rowEditConditions: [],
            contentType: 'TEXT',
            contentConfig: {"conditionStyle":[],"boolConfig":"collection"},
            // 使用插槽的列，设置单元格padding为0，padding样式在内容插槽中已加，以便内容插槽设置背景色时可以占满整个单元格；该样式会在计算属性生成列配置时加入customCell
            customCellStyle: { padding: 0 },
            width: 300,
            resizable: true,
          },
          {
            id: 'ya4bvhxrit',
            dataIndex: 'milepostName',
            headerComment: false,
            title: '项目阶段',
            ellipsis: false,
            headerOverflow: 'ellipsis',
            contentAlign: 'left',
            customHeaderCell: () => ({ style: { 'text-align': 'left' } }),
            rowEditConditions: [],
            contentType: 'TEXT',
            contentConfig: {"conditionStyle":[],"boolConfig":"collection"},
            // 使用插槽的列，设置单元格padding为0，padding样式在内容插槽中已加，以便内容插槽设置背景色时可以占满整个单元格；该样式会在计算属性生成列配置时加入customCell
            customCellStyle: { padding: 0 },
            resizable: true,
          },
          {
            id: 'gqhc0s9ea2',
            dataIndex: 'taskName',
            headerComment: false,
            title: '任务名称',
            ellipsis: false,
            headerOverflow: 'ellipsis',
            contentAlign: 'left',
            customHeaderCell: () => ({ style: { 'text-align': 'left' } }),
            rowEditConditions: [],
            contentType: 'TEXT',
            contentConfig: {"conditionStyle":[],"boolConfig":"collection"},
            // 使用插槽的列，设置单元格padding为0，padding样式在内容插槽中已加，以便内容插槽设置背景色时可以占满整个单元格；该样式会在计算属性生成列配置时加入customCell
            customCellStyle: { padding: 0 },
            resizable: true,
          },
          {
            id: 'gzr9jl44rc',
            dataIndex: 'plannedInputHours',
            headerComment: false,
            title: '任务工时',
            ellipsis: false,
            headerOverflow: 'ellipsis',
            contentAlign: 'left',
            customHeaderCell: () => ({ style: { 'text-align': 'left' } }),
            rowEditConditions: [],
            contentType: 'NUMBER',
            contentConfig: {"conditionStyle":[],"boolConfig":"collection"},
            // 使用插槽的列，设置单元格padding为0，padding样式在内容插槽中已加，以便内容插槽设置背景色时可以占满整个单元格；该样式会在计算属性生成列配置时加入customCell
            customCellStyle: { padding: 0 },
            resizable: true,
          },
          {
            id: '2m8b7udrgm',
            dataIndex: 'taskStatus',
            headerComment: false,
            title: '任务状态',
            ellipsis: false,
            headerOverflow: 'ellipsis',
            contentAlign: 'left',
            customHeaderCell: () => ({ style: { 'text-align': 'left' } }),
            rowEditConditions: [],
            contentType: 'TEXT',
            contentConfig: {"conditionStyle":[],"boolConfig":"collection"},
            // 使用插槽的列，设置单元格padding为0，padding样式在内容插槽中已加，以便内容插槽设置背景色时可以占满整个单元格；该样式会在计算属性生成列配置时加入customCell
            customCellStyle: { padding: 0 },
            resizable: true,
          },
          {
            id: '4ack5f3rwp',
            dataIndex: 'stateInput',
            headerComment: false,
            title: '任务工时投入情况',
            ellipsis: false,
            headerOverflow: 'ellipsis',
            contentAlign: 'left',
            customHeaderCell: () => ({ style: { 'text-align': 'left' } }),
            rowEditConditions: [],
            contentType: 'TEXT',
            contentConfig: {"conditionStyle":[],"boolConfig":"collection"},
            // 使用插槽的列，设置单元格padding为0，padding样式在内容插槽中已加，以便内容插槽设置背景色时可以占满整个单元格；该样式会在计算属性生成列配置时加入customCell
            customCellStyle: { padding: 0 },
            resizable: true,
          },
          {
            id: 'rkpw9qukpy',
            dataIndex: 'endTime',
            headerComment: false,
            title: '计划完成时间',
            ellipsis: false,
            headerOverflow: 'ellipsis',
            contentAlign: 'left',
            customHeaderCell: () => ({ style: { 'text-align': 'left' } }),
            rowEditConditions: [],
            contentType: 'TIME',
            contentConfig: {"format":"YYYY-MM-DD","conditionStyle":[],"boolConfig":"collection"},
            // 使用插槽的列，设置单元格padding为0，padding样式在内容插槽中已加，以便内容插槽设置背景色时可以占满整个单元格；该样式会在计算属性生成列配置时加入customCell
            customCellStyle: { padding: 0 },
            resizable: true,
          },
          {
            id: 'q5v22x5isv',
            dataIndex: 'taskFinishTime',
            headerComment: false,
            title: '实际完成时间',
            ellipsis: false,
            headerOverflow: 'ellipsis',
            contentAlign: 'left',
            customHeaderCell: () => ({ style: { 'text-align': 'left' } }),
            rowEditConditions: [],
            contentType: 'TEXT',
            contentConfig: {"conditionStyle":[],"boolConfig":"collection"},
            // 使用插槽的列，设置单元格padding为0，padding样式在内容插槽中已加，以便内容插槽设置背景色时可以占满整个单元格；该样式会在计算属性生成列配置时加入customCell
            customCellStyle: { padding: 0 },
            resizable: true,
          },
          {
            dataIndex: 'vid_7muz277z0f_operation',
            title: '操作',
            fixed: 'right',
          },
        ],
      rawColumnList: [],
      // 进行行合并所需的排序规则，必须将其加到排序字段的前面，以实现合并单元格
      rowMergeSort: [
        { order: 'department', direction: 'ASC' },
  { order: 'reportedBy', direction: 'ASC' },
  { order: 'weeklyWorkingHours', direction: 'ASC' },
  { order: 'projectName', direction: 'ASC' },
      ],
      // 完整的排序规则：需要将行合并的排序规则和排序字段的排序规则赋给该属性；调接口时会使用其作为排序条件
      systemSort: [
        { order: 'department', direction: 'ASC' },
  { order: 'reportedBy', direction: 'ASC' },
  { order: 'weeklyWorkingHours', direction: 'ASC' },
  { order: 'projectName', direction: 'ASC' },
      ],
      // 条件格式需要的边界值映射：key为边界值id，value为边界值数据
      boundaryValueMap: {},
      // 表格单元格内容渲染需要的外部数据源：key为列，value为该列单元格的外部数据源配置
      contentDataSource: {},
  })

    const vid_kjy9opxgxl_props = reactive({
          value: undefined,
  })

    const vid_t5g2fxyxpm_props = reactive({
          lazyParams: undefined,
      selected: {"singleValue":"","title":[],"value":[],"option":[],"singleLabel":""},
      clickNode: {"nodeTitle":"","nodeKey":"","nodeParentKey":""},
      checkedKeys: [],
      selectedKeys: [],
      expandedKeys: [],
  })
  // ---------------------------- 定义模型数据 ----------------------------

    const v_owod4ao7sh = reactive({})

    // ============================ 定义模型数据 ============================


    const v_owod4ao7sh_rules = reactive({



    })


      // 处理校验
      const setSubFormName =(parentInfo, name)=>{
        return [parentInfo.parents, parentInfo.cycleIndex, name];
      }


    const vid_32wupwqleq_options_raw = ref([])

      const vid_32wupwqleq_options = computed(() => {
        return () => vid_32wupwqleq_options_raw.value
      })



    const vid_bp126nku1k_options_raw = ref([])

      const vid_bp126nku1k_options = computed(() => {
        return (dataSource = vid_bp126nku1k_options_raw.value)=>{
          return (dataSource || []).map(item => {
            return {
              ...item,
              value: item.projectCode,
          disabled: !!item.disabled,
          label: item.projectCode
            }
          })
        }
      })



    const vid_h1q7gdhl9y_options_raw = ref([])

      const vid_h1q7gdhl9y_options = computed(() => {
        return (dataSource = vid_h1q7gdhl9y_options_raw.value)=>{
          return (dataSource || []).map(item => {
            return {
              ...item,
              value: item.value,
          disabled: !!item.disabled,
          label: item.label
            }
          })
        }
      })



    const vid_7muz277z0f_options_raw = ref([])

      const vid_7muz277z0f_options = computed(() => {
        return () => vid_7muz277z0f_options_raw.value
      })



    const vid_t5g2fxyxpm_options_raw = ref([])

      const vid_t5g2fxyxpm_options = computed(() => {
            return () => vid_t5g2fxyxpm_options_raw.value
          })

  // 图表组件 表格_7qs7h4kybw 条件格式数据依赖
  const vid_32wupwqleq_chartConditionDependencyMap = ref({
  })
  // 图表组件 下拉框_z0o42ctc2s 条件格式数据依赖
  const vid_bp126nku1k_chartConditionDependencyMap = ref({
  })
  // 图表组件 下拉框_week 条件格式数据依赖
  const vid_h1q7gdhl9y_chartConditionDependencyMap = ref({
  })
  // 图表组件 表格_4d5qi2p6hg 条件格式数据依赖
  const vid_7muz277z0f_chartConditionDependencyMap = ref({
  })
  // 图表组件 树形控件_k1olvxdw99 条件格式数据依赖
  const vid_t5g2fxyxpm_chartConditionDependencyMap = ref({
  })
  /* ========================== 属性定义 ========================== */


  /* -------------------------- 元素数据引用 -------------------------- */
  // 组件 表单容器_xmqxnbg57p ref 的引用
  const vid_u87cviwdjq_ref = ref(null);

  /* ========================== 元素数据引用 ========================== */


  /* -------------------------- 页面数据 -------------------------- */

    // 页面数据 周日报信息
    const dataConnector_conn_cu5hdx4zfk_response = ref();
    const dataConnector_conn_cu5hdx4zfk = async (additionParams = {}) => {
        const exec = async () => {
          // 获取参数
          const params = {
            week: v_owod4ao7sh.z_4wr4sn3b9l,
          pageNo: vid_32wupwqleq_props?.rt_tableConfig.pagination.current,
          dateOption: v_owod4ao7sh.f_0riaadizhb,
          pageSize: vid_32wupwqleq_props?.rt_tableConfig.pagination.pageSize,
          myWeekly: undefined,
          department: vid_7muz277z0f_props?.currentRow.department,
          reportedBy: vid_7muz277z0f_props?.currentRow.reportedBy,
          taskId: vid_7muz277z0f_props?.currentRow.taskId
          };

          // 注入附加的参数
          try {
            merge(params, additionParams);
          } catch (error) {
            console.log(error)
          }

          // 判断加载提示

          // 处理URL
          let url = '/solution-ppm/api/v2/built-in-system-ppm/weekly/daily_list';
          // 替换url中的变量

          // 排除空参数  日期组件重置后的空参数是[null] 或者[undefined]
          Object.keys(params).forEach(key=>{ if(params[key] === null){ delete params[key] }else if( Object.prototype.toString.call(params[key]) === '[object Object]' ){ Object.keys(params[key]).forEach(childKey=>{ if(params[key][childKey] === null || (Array.isArray(params[key][childKey]) && params[key][childKey].length === 1 && isNullOrUnDef(params[key][childKey]?.[0]))){ delete params[key][childKey] }}) } });
          return post(url, params, {
                headers: undefined
              }).then(async (resp) => {
            dataConnector_conn_cu5hdx4zfk_response.value = resp;

            return resp;
          }).catch(async (e) => {


            return Promise.reject(e);
          }).finally(async () => {


          })
        }

          return await exec()

    }


    // 页面数据 员工周报树形结构
    const dataConnector_conn_tjpixlkn8e_response = ref();
    const dataConnector_conn_tjpixlkn8e = async (additionParams = {}) => {
        const exec = async () => {
          // 获取参数
          const params = {
            department: vid_kjy9opxgxl_props?.value
          };

          // 注入附加的参数
          try {
            merge(params, additionParams);
          } catch (error) {
            console.log(error)
          }

          // 判断加载提示

          // 处理URL
          let url = '/solution-ppm/api/v2//built-in-system-ppm/weekly/queryDepartmentDto';
          // 替换url中的变量

          // 排除空参数  日期组件重置后的空参数是[null] 或者[undefined]
          Object.keys(params).forEach(key=>{ if(params[key] === null){ delete params[key] }else if( Object.prototype.toString.call(params[key]) === '[object Object]' ){ Object.keys(params[key]).forEach(childKey=>{ if(params[key][childKey] === null || (Array.isArray(params[key][childKey]) && params[key][childKey].length === 1 && isNullOrUnDef(params[key][childKey]?.[0]))){ delete params[key][childKey] }}) } });
          return post(url, params, {
                headers: undefined
              }).then(async (resp) => {
            dataConnector_conn_tjpixlkn8e_response.value = resp;

            return resp;
          }).catch(async (e) => {


            return Promise.reject(e);
          }).finally(async () => {


          })
        }

          return await exec()

    }


    // 页面数据 下拉框项目代号
    const dataConnector_conn_bm63n7kr1q_response = ref();
    const dataConnector_conn_bm63n7kr1q = async (additionParams = {}) => {
        const exec = async () => {
          // 获取参数
          const params = {

          };

          // 注入附加的参数
          try {
            merge(params, additionParams);
          } catch (error) {
            console.log(error)
          }

          // 判断加载提示

          // 处理URL
          let url = '/solution-ppm/api/v2/built-in-system-ppm/daily/queryProjectCode';
          // 替换url中的变量

          // 排除空参数  日期组件重置后的空参数是[null] 或者[undefined]
          Object.keys(params).forEach(key=>{ if(params[key] === null){ delete params[key] }else if( Object.prototype.toString.call(params[key]) === '[object Object]' ){ Object.keys(params[key]).forEach(childKey=>{ if(params[key][childKey] === null || (Array.isArray(params[key][childKey]) && params[key][childKey].length === 1 && isNullOrUnDef(params[key][childKey]?.[0]))){ delete params[key][childKey] }}) } });
          return get(url, params, {
                headers: undefined
              }).then(async (resp) => {
            dataConnector_conn_bm63n7kr1q_response.value = resp;

            return resp;
          }).catch(async (e) => {


            return Promise.reject(e);
          }).finally(async () => {


          })
        }

          return await exec()

    }


    // 页面数据 员工周报列表(2023.02.22)
    const dataConnector_conn_enn13w92ad_response = ref();
    const dataConnector_conn_enn13w92ad = async (additionParams = {}) => {
        const exec = async () => {
          // 获取参数
          const params = {
            week: vid_h1q7gdhl9y_props?.selected.value,
          partnershipOrCustomerName: null,
          dateOption: v_owod4ao7sh.f_0riaadizhb,
          reportedByList: undefined,
          departmentNameList: undefined,
          pageSize: vid_7muz277z0f_props?.rt_tableConfig.pagination.pageSize,
          myWeekly: undefined,
          endDateTime: undefined,
          reportedBy: undefined,
          treeId: vid_t5g2fxyxpm_props?.selected.singleValue,
          startDateTime: undefined,
          projectCode: vid_bp126nku1k_props?.selected.value,
          treeName: vid_t5g2fxyxpm_props?.selected.singleLabel,
          pageNo: vid_7muz277z0f_props?.rt_tableConfig.pagination.current,
          department: undefined,
          taskId: undefined,
          status: undefined
          };

          // 注入附加的参数
          try {
            merge(params, additionParams);
          } catch (error) {
            console.log(error)
          }

          // 判断加载提示

          // 处理URL
          let url = '/solution-ppm/api/v2//built-in-system-ppm/weekly/list';
          // 替换url中的变量

          // 排除空参数  日期组件重置后的空参数是[null] 或者[undefined]
          Object.keys(params).forEach(key=>{ if(params[key] === null){ delete params[key] }else if( Object.prototype.toString.call(params[key]) === '[object Object]' ){ Object.keys(params[key]).forEach(childKey=>{ if(params[key][childKey] === null || (Array.isArray(params[key][childKey]) && params[key][childKey].length === 1 && isNullOrUnDef(params[key][childKey]?.[0]))){ delete params[key][childKey] }}) } });
          return post(url, params, {
                headers: undefined
              }).then(async (resp) => {
            dataConnector_conn_enn13w92ad_response.value = resp;

            return resp;
          }).catch(async (e) => {


            return Promise.reject(e);
          }).finally(async () => {


          })
        }

          return await exec()

    }


    // 页面数据 月的周数量
    const dataConnector_conn_qyiqoeoux0_response = ref();
    const dataConnector_conn_qyiqoeoux0 = async (additionParams = {}) => {
        const exec = async () => {
          // 获取参数
          const params = {
            treeId: undefined,
          week: undefined,
          partnershipOrCustomerName: undefined,
          projectCode: undefined,
          treeName: undefined,
          pageNo: undefined,
          dateOption: v_owod4ao7sh.f_0riaadizhb,
          pageSize: undefined
          };

          // 注入附加的参数
          try {
            merge(params, additionParams);
          } catch (error) {
            console.log(error)
          }

          // 判断加载提示

          // 处理URL
          let url = '/solution-ppm/api/v2//built-in-system-ppm/weekly/month-week';
          // 替换url中的变量

          // 排除空参数  日期组件重置后的空参数是[null] 或者[undefined]
          Object.keys(params).forEach(key=>{ if(params[key] === null){ delete params[key] }else if( Object.prototype.toString.call(params[key]) === '[object Object]' ){ Object.keys(params[key]).forEach(childKey=>{ if(params[key][childKey] === null || (Array.isArray(params[key][childKey]) && params[key][childKey].length === 1 && isNullOrUnDef(params[key][childKey]?.[0]))){ delete params[key][childKey] }}) } });
          return post(url, params, {
                headers: undefined
              }).then(async (resp) => {
            dataConnector_conn_qyiqoeoux0_response.value = resp;

            return resp;
          }).catch(async (e) => {


            return Promise.reject(e);
          }).finally(async () => {


          })
        }

          return await exec()

    }


    // 页面数据 上一周的日期
    const dataConnector_conn_2fi193qr7q_response = ref();
    const dataConnector_conn_2fi193qr7q = async (additionParams = {}) => {
        const exec = async () => {
          // 获取参数
          const params = {

          };

          // 注入附加的参数
          try {
            merge(params, additionParams);
          } catch (error) {
            console.log(error)
          }

          // 判断加载提示

          // 处理URL
          let url = '/solution-ppm/api/v2/built-in-system-ppm/weekly/last-week';
          // 替换url中的变量

          // 排除空参数  日期组件重置后的空参数是[null] 或者[undefined]
          Object.keys(params).forEach(key=>{ if(params[key] === null){ delete params[key] }else if( Object.prototype.toString.call(params[key]) === '[object Object]' ){ Object.keys(params[key]).forEach(childKey=>{ if(params[key][childKey] === null || (Array.isArray(params[key][childKey]) && params[key][childKey].length === 1 && isNullOrUnDef(params[key][childKey]?.[0]))){ delete params[key][childKey] }}) } });
          return post(url, params, {
                headers: undefined
              }).then(async (resp) => {
            dataConnector_conn_2fi193qr7q_response.value = resp;

            return resp;
          }).catch(async (e) => {


            return Promise.reject(e);
          }).finally(async () => {


          })
        }

          return await exec()

    }


  /* ========================== 页面数据 ========================== */



  /* -------------------------- 响应 -------------------------- */

  /* ========================== 响应 ========================== */


  /* -------------------------- 函数 -------------------------- */

    // 自定义函数 校验查询条件
    const customFunction_lwdosn27hl = async (params) => {
      if (!v_owod4ao7sh.f_0riaadizhb && !v_owod4ao7sh.z_4wr4sn3b9l) {
  		return Promise.resolve()
  	} else if (!v_owod4ao7sh.f_0riaadizhb && v_owod4ao7sh.z_4wr4sn3b9l) {
  		message.info('请完善日期条件')
  		return Promise.reject()
  	} else if (v_owod4ao7sh.f_0riaadizhb && !v_owod4ao7sh.z_4wr4sn3b9l) {
  		message.info('请完善日期搜索条件')
  		return Promise.reject()
  	}
    }

  /* ========================== 函数 ========================== */


  /* -------------------------- 页面参数 -------------------------- */

    const pageParameter_state = reactive({
        'processInstanceId': props.processInstanceId ?? route.query.processInstanceId,
    })

  /* ========================== 页面参数 ========================== */


  /* -------------------------- 组件事件处理方法 -------------------------- */

    // ---------------------------- 组件数据同步 ----------------------------
    // 处理 表格_7qs7h4kybw 的 systemList 属性关联
  watch(() => dataConnector_conn_cu5hdx4zfk_response?.value?.dataList,
    () => {
      let dataList = dataConnector_conn_cu5hdx4zfk_response?.value?.dataList

      // 处理零代码生成的表格数据，将dataList展开
      const data = dataConnector_conn_cu5hdx4zfk_response?.value;
      if (data && 'dataList' in data && 'columnList' in data) {
        const newDataList = parseSubFromDataList(dataList);
        if (newDataList.length) {
          dataList = newDataList;
        }
      }

      vid_32wupwqleq_options_raw.value = dataList;
    },
    {deep: true})
  // 处理 表格_7qs7h4kybw 的 totalNumber 属性关联
  watch(() => dataConnector_conn_cu5hdx4zfk_response?.value?.totalElements,
    () => {
      let dataList = dataConnector_conn_cu5hdx4zfk_response?.value?.totalElements

      vid_32wupwqleq_props.totalNumber = dataList;
    },
    {deep: true})
  // 处理 下拉框_z0o42ctc2s 的 systemList 属性关联
  watch(() => dataConnector_conn_bm63n7kr1q_response?.value?.dataList,
    () => {
      let dataList = dataConnector_conn_bm63n7kr1q_response?.value?.dataList

      // 处理零代码生成的表格数据，将dataList展开
      const data = dataConnector_conn_bm63n7kr1q_response?.value;
      if (data && 'dataList' in data && 'columnList' in data) {
        const newDataList = parseSubFromDataList(dataList);
        if (newDataList.length) {
          dataList = newDataList;
        }
      }

      vid_bp126nku1k_options_raw.value = dataList;
    },
    {deep: true})
  // 处理 下拉框_week 的 systemList 属性关联
  watch(() => dataConnector_conn_qyiqoeoux0_response?.value?.data,
    () => {
      let dataList = dataConnector_conn_qyiqoeoux0_response?.value?.data

      vid_h1q7gdhl9y_options_raw.value = dataList;
    },
    {deep: true})



















  // 处理 下拉框_week 的 value 属性关联
  watch(() => dataConnector_conn_2fi193qr7q_response?.value?.data?.week,
    () => {
      let dataList = dataConnector_conn_2fi193qr7q_response?.value?.data?.week

      v_owod4ao7sh.z_4wr4sn3b9l = dataList;
    },
    {deep: true})
  // 处理 日期_dateOption 的 value 属性关联
  watch(() => dataConnector_conn_2fi193qr7q_response?.value?.data?.dateOption,
    () => {
      let dataList = dataConnector_conn_2fi193qr7q_response?.value?.data?.dateOption

      v_owod4ao7sh.f_0riaadizhb = dataList;
    },
    {deep: true})
  // 处理 表格_4d5qi2p6hg 的 systemList 属性关联
  watch(() => dataConnector_conn_enn13w92ad_response?.value?.data?.dataList,
    () => {
      let dataList = dataConnector_conn_enn13w92ad_response?.value?.data?.dataList

      // 处理零代码生成的表格数据，将dataList展开
      const data = dataConnector_conn_enn13w92ad_response?.value?.data;
      if (data && 'dataList' in data && 'columnList' in data) {
        const newDataList = parseSubFromDataList(dataList);
        if (newDataList.length) {
          dataList = newDataList;
        }
      }

      vid_7muz277z0f_options_raw.value = dataList;
    },
    {deep: true})
  // 处理 表格_4d5qi2p6hg 的 totalNumber 属性关联
  watch(() => dataConnector_conn_enn13w92ad_response?.value?.data?.totalElements,
    () => {
      let dataList = dataConnector_conn_enn13w92ad_response?.value?.data?.totalElements

      vid_7muz277z0f_props.totalNumber = dataList;
    },
    {deep: true})
  // 处理 树形控件_k1olvxdw99 的 systemList 属性关联
  watch(() => dataConnector_conn_tjpixlkn8e_response?.value?.treeNodes,
    () => {
      let dataList = dataConnector_conn_tjpixlkn8e_response?.value?.treeNodes

      vid_t5g2fxyxpm_options_raw.value = dataList;
    },
    {deep: true})
    // ============================ 组件数据同步 ============================

  /**
  * 处理元素 对话框 的 cancel 事件
  */
  let handle_vid_2w3ovxkl7i_cancel = throttle(async (...params) => {
  vid_2w3ovxkl7i_props.visible = false;
  }, 500)
  /**
  * 处理元素 对话框 的 ok 事件
  */
  let handle_vid_2w3ovxkl7i_ok = throttle(async (...params) => {
  vid_2w3ovxkl7i_props.visible = false;
  }, 500)
  /**
  * 处理元素 表格 的 change 事件
  */
  let handle_vid_32wupwqleq_change = throttle(async (...params) => {
  // 处理分页器相关数据
  const [pagination, filters, sorter] = params;
  const { current, pageSize } = pagination;
  vid_32wupwqleq_props.rt_tableConfig.pagination.current = current;
  vid_32wupwqleq_props.rt_tableConfig.pagination.pageSize = pageSize;
  // 处理排序相关数据
  const { field, order } = sorter;
  const sorterList = [...vid_32wupwqleq_props.rowMergeSort];
  let sorterValue = {};
  if (order === 'descend') {
  sorterValue = { order: field, direction: 'DESC' }
  } else if (order === 'ascend') {
  sorterValue = { order: field, direction: 'ASC' }
  }
  sorterList.push(sorterValue);
  vid_32wupwqleq_props.systemSort = sorterList;
  vid_32wupwqleq_props.sorter = sorterValue;
  }, 500)
  /**
  * 处理元素 按钮 的 click 事件
  */
  let handle_vid_e0486mazuj_click = throttle(async (...params) => {
  await customFunction_lwdosn27hl();
  await dataConnector_conn_enn13w92ad()
  }, 500)
  /**
  * 处理元素 按钮 的 click 事件
  */
  let handle_vid_4bsd11um9o_click = throttle(async (...params) => {
  // 这里组件可能还未初始化， 这里使用可选链的形式进行函数触发
  try {
  await vid_u87cviwdjq_ref.value?.resetFields();
  } catch (error) { console.log(error);}
  await dataConnector_conn_enn13w92ad()
  }, 500)
  /**
  * 处理元素 下拉框 的 focus 事件
  */
  let handle_vid_bp126nku1k_focus = throttle(async (...params) => {
  await dataConnector_conn_bm63n7kr1q()
  }, 500)
  /**
  * 处理元素 下拉框 的 change 事件
  */
  let handle_vid_bp126nku1k_change = throttle(async (...params) => {
  const [,option] = params;
  vid_bp126nku1k_props.selected.label = option?.label;
  vid_bp126nku1k_props.selected.value = option?.value;
  vid_bp126nku1k_props.selected.option = option;
  vid_bp126nku1k_props.selected.optionArray = [{ label: option?.label, value: option?.value }];
  }, 500)
  /**
  * 处理元素 下拉框 的 search 事件
  */
  let handle_vid_bp126nku1k_search = throttle(async (...params) => {
  const [searchValue] = params;
  vid_bp126nku1k_props.searchValue = searchValue;
  }, 500)
  /**
  * 处理元素 下拉框 的 focus 事件
  */
  let handle_vid_h1q7gdhl9y_focus = throttle(async (...params) => {
  await dataConnector_conn_qyiqoeoux0()
  }, 500)
  /**
  * 处理元素 下拉框 的 change 事件
  */
  let handle_vid_h1q7gdhl9y_change = throttle(async (...params) => {
  const [,option] = params;
  vid_h1q7gdhl9y_props.selected.label = option?.label;
  vid_h1q7gdhl9y_props.selected.value = option?.value;
  vid_h1q7gdhl9y_props.selected.option = option;
  vid_h1q7gdhl9y_props.selected.optionArray = [{ label: option?.label, value: option?.value }];
  }, 500)
  /**
  * 处理元素 下拉框 的 search 事件
  */
  let handle_vid_h1q7gdhl9y_search = throttle(async (...params) => {
  const [searchValue] = params;
  vid_h1q7gdhl9y_props.searchValue = searchValue;
  }, 500)
  /**
  * 处理元素 表格 的 clickBtn_524w7sdqlt 事件
  */
  let handle_vid_7muz277z0f_clickBtn_524w7sdqlt = throttle(async (...params) => {
  // 存储表格当前行数据
  const [record] = params;
  vid_7muz277z0f_props.currentRow = record;
  vid_2w3ovxkl7i_props.visible = true;
  await dataConnector_conn_cu5hdx4zfk()
  }, 500)
  /**
  * 处理元素 表格 的 change 事件
  */
  let handle_vid_7muz277z0f_change = throttle(async (...params) => {
  // 处理分页器相关数据
  const [pagination, filters, sorter] = params;
  const { current, pageSize } = pagination;
  vid_7muz277z0f_props.rt_tableConfig.pagination.current = current;
  vid_7muz277z0f_props.rt_tableConfig.pagination.pageSize = pageSize;
  // 处理排序相关数据
  const { field, order } = sorter;
  const sorterList = [...vid_7muz277z0f_props.rowMergeSort];
  let sorterValue = {};
  if (order === 'descend') {
  sorterValue = { order: field, direction: 'DESC' }
  } else if (order === 'ascend') {
  sorterValue = { order: field, direction: 'ASC' }
  }
  sorterList.push(sorterValue);
  vid_7muz277z0f_props.systemSort = sorterList;
  vid_7muz277z0f_props.sorter = sorterValue;
  await dataConnector_conn_enn13w92ad()
  }, 500)
  /**
  * 处理元素 表格 的 clickBtn_4iuz0yr80h 事件
  */
  let handle_vid_7muz277z0f_clickBtn_4iuz0yr80h = throttle(async (...params) => {
  // 存储表格当前行数据
  const [record] = params;
  vid_7muz277z0f_props.currentRow = record;
  }, 500)
  /**
  * 处理元素 表格 的 clickBtn_ecidtyfh5m 事件
  */
  let handle_vid_7muz277z0f_clickBtn_ecidtyfh5m = throttle(async (...params) => {
  // 存储表格当前行数据
  const [record] = params;
  vid_7muz277z0f_props.currentRow = record;
  }, 500)
  /**
  * 处理元素 表格 的 clickBtn_x2iqfwj62a 事件
  */
  let handle_vid_7muz277z0f_clickBtn_x2iqfwj62a = throttle(async (...params) => {
  // 存储表格当前行数据
  const [record] = params;
  vid_7muz277z0f_props.currentRow = record;
  }, 500)
  /**
  * 处理元素 表格 的 clickBtn_w3r64lholn 事件
  */
  let handle_vid_7muz277z0f_clickBtn_w3r64lholn = throttle(async (...params) => {
  // 存储表格当前行数据
  const [record] = params;
  vid_7muz277z0f_props.currentRow = record;
  }, 500)
  /**
  * 处理元素 输入框 的 change 事件
  */
  let handle_vid_kjy9opxgxl_change = throttle(async (...params) => {
  await dataConnector_conn_tjpixlkn8e()
  }, 500)
  /**
  * 处理元素 树形控件 的 select 事件
  */
  let handle_vid_t5g2fxyxpm_select = throttle(async (...params) => {
  const [selectedKeys, e] = params;
  const { selectedNodes = [], node = {} } = e, [singleValue] = selectedKeys, [singleNode] = selectedNodes;
  const { parent = {} } = node;
  vid_t5g2fxyxpm_props.selected.title = selectedNodes.map((item) => item.name) ?? [];
  vid_t5g2fxyxpm_props.selected.value = selectedKeys;
  vid_t5g2fxyxpm_props.selected.option = selectedNodes;
  vid_t5g2fxyxpm_props.selected.singleValue = singleValue;
  vid_t5g2fxyxpm_props.selected.singleLabel = singleNode?.title ?? '';
  // 存储树节点数据
  vid_t5g2fxyxpm_props.clickNode.nodeParentKey = parent?.key ?? node?.key ?? '';
  vid_t5g2fxyxpm_props.clickNode.nodeKey = node?.key ?? '';
  vid_t5g2fxyxpm_props.clickNode.nodeTitle = node?.title ?? '';
  await dataConnector_conn_2fi193qr7q()
  await dataConnector_conn_qyiqoeoux0()
  await dataConnector_conn_enn13w92ad()
  }, 500)
  /* ========================== 组件事件处理方法 ========================== */


  /* -------------------------- 生命周期 -------------------------- */
  // 用于参数变更后重新执行自定义指令
      const queryUpdateFlag = ref(0);
      onMounted(() => { ;dataConnector_conn_tjpixlkn8e()
  dataConnector_conn_enn13w92ad()

    });

    onUnmounted(() => {
      // 销毁定时器
      setTimeOutList.forEach(({ repeat, timer }) => {
        repeat ?  clearInterval(timer): clearTimeout(timer);
      });
    });

  /* ========================== 生命周期 ========================== */


  /* -------------------------- 数据关联处理 -------------------------- */





  /* -------------------------- 表单数据同步 -------------------------- */
  /* ========================== 表单数据同步 ========================== */

  /* ========================== 数据关联处理 ========================== */


  /* -------------------------- 不同组件自定义的处理逻辑 -------------------------- */
  onMounted(() => {
    const rawColumnList = []
    traversalTreeStructure(vid_32wupwqleq_props.columnList, (node) => {
      if (node.type === 'column') {
        rawColumnList.push(node)
      }
    });
    
    // 获取缓存的表格列宽度，处理列宽信息
    UserTableRecords.getTableRecords(localGet('al__UID')).then((res) => {
      const columnWidthMap = res['vid_32wupwqleq'] ?? {};
      rawColumnList.map((column) => {
        if(columnWidthMap[column.dataIndex]) {
          column.width = columnWidthMap[column.dataIndex]
        }
      })
    });
    
    vid_32wupwqleq_props.rawColumnList = rawColumnList;
  })
  // 生成表格列：相同分组的数据需要合并单元格
  const vid_32wupwqleq_columns = computed(() => {
    // 需要合并单元格的列
    const groupKeys = [];

    // 将表头配置按照groupTitle字段进行分组，以实现多级表头
    const columnList = [...vid_32wupwqleq_props.columnList];
    function formatColumns(columns) {
      columns.forEach(item => {
        const { dataIndex, contentAlign, children, customCellStyle } = item;
        // 如果当前列是分组列，则递归处理它的子列，当前列本身不作处理
        if (!dataIndex && children && children.length) {
          formatColumns(children);
          return;
        }

        const groupIndex = groupKeys.findIndex(item => item === dataIndex);
        // 如果当前字段属于分组字段，则给它添加合并单元格的配置，否则直接返回
        if (groupIndex === -1) {
          item.customCell = (record, index) => {
            return { style: { 'text-align': contentAlign, ...(customCellStyle || {}) } };
          };
        } else {
          item.customCell = (record, index) => {
            const rowGroupKeys = groupKeys.slice(0, groupIndex + 1);
            const rowSpanList = generateRowSpanList(vid_32wupwqleq_options.value(), rowGroupKeys,vid_32wupwqleq_props.editRecordMap);
            return { rowSpan: rowSpanList[index], style: { 'text-align': contentAlign, ...(customCellStyle || {}) } };
          };
        }
      })
    }

    // 格式化column：增加合并单元格的配置，以及自定义样式
    formatColumns(columnList);

    return columnList;
  });


    // 表格分页器信息：将总条数信息加到基础分页信息中
    const vid_32wupwqleq_pagination = computed(() => {
      const { totalNumber, rt_tableConfig } = vid_32wupwqleq_props;
      const {
        enable = true,
        current= 1,
        pageSize= 10,
        showSizeChanger= false,
        pageSizeOptions= '10,20,30,40',
        showTotal= false,
        showQuickJumper= false,
        simple= false,
        hideOnSinglePage= false,
      } = rt_tableConfig.pagination ?? {};
      const { size = 'default', layout='bottomRight' } = rt_tableConfig?.style?.paginationStyle || {}
      let info = {};
      if(enable) {
        info = {
          total: totalNumber || 0,
          pageSize,
          size,
          simple,
          current,
          showSizeChanger,
          pageSizeOptions: pageSizeOptions.split(','),
          showQuickJumper,
          hideOnSinglePage,
          position: [layout],
        }
        if(showTotal) {
          info.showTotal = (total, range) => `共${total}个项目，第${current}/${Math.ceil(total / pageSize)}页`
        }
        return info;
      }
      return false;
    })
  immediateWatch(
    () => [v_owod4ao7sh?.o_xc3f3gdx8n, vid_bp126nku1k_options?.value()],
    () => {
      if(!!handle_vid_bp126nku1k_change) {
      const options = (vid_bp126nku1k_options?.value() || []).find((item) => item.value === v_owod4ao7sh?.o_xc3f3gdx8n || item.label === v_owod4ao7sh?.o_xc3f3gdx8n )
      if(!options) {
        return;
      }
        // 重置了表单，这里重置下拉框
        handle_vid_bp126nku1k_change(v_owod4ao7sh?.o_xc3f3gdx8n, {...options} || {})
      }
    }
  )
  immediateWatch(
    () => [v_owod4ao7sh?.z_4wr4sn3b9l, vid_h1q7gdhl9y_options?.value()],
    () => {
      if(!!handle_vid_h1q7gdhl9y_change) {
      const options = (vid_h1q7gdhl9y_options?.value() || []).find((item) => item.value === v_owod4ao7sh?.z_4wr4sn3b9l || item.label === v_owod4ao7sh?.z_4wr4sn3b9l )
      if(!options) {
        return;
      }
        // 重置了表单，这里重置下拉框
        handle_vid_h1q7gdhl9y_change(v_owod4ao7sh?.z_4wr4sn3b9l, {...options} || {})
      }
    }
  )
  onMounted(() => {
    const rawColumnList = []
    traversalTreeStructure(vid_7muz277z0f_props.columnList, (node) => {
      if (node.type === 'column') {
        rawColumnList.push(node)
      }
    });
    
    // 获取缓存的表格列宽度，处理列宽信息
    UserTableRecords.getTableRecords(localGet('al__UID')).then((res) => {
      const columnWidthMap = res['vid_7muz277z0f'] ?? {};
      rawColumnList.map((column) => {
        if(columnWidthMap[column.dataIndex]) {
          column.width = columnWidthMap[column.dataIndex]
        }
      })
    });
    
    vid_7muz277z0f_props.rawColumnList = rawColumnList;
  })
  // 生成表格列：相同分组的数据需要合并单元格
  const vid_7muz277z0f_columns = computed(() => {
    // 需要合并单元格的列
    const groupKeys = ['department', 'reportedBy', 'weeklyWorkingHours', 'projectName'];

    // 将表头配置按照groupTitle字段进行分组，以实现多级表头
    const columnList = [...vid_7muz277z0f_props.columnList];
    function formatColumns(columns) {
      columns.forEach(item => {
        const { dataIndex, contentAlign, children, customCellStyle } = item;
        // 如果当前列是分组列，则递归处理它的子列，当前列本身不作处理
        if (!dataIndex && children && children.length) {
          formatColumns(children);
          return;
        }

        const groupIndex = groupKeys.findIndex(item => item === dataIndex);
        // 如果当前字段属于分组字段，则给它添加合并单元格的配置，否则直接返回
        if (groupIndex === -1) {
          item.customCell = (record, index) => {
            return { style: { 'text-align': contentAlign, ...(customCellStyle || {}) } };
          };
        } else {
          item.customCell = (record, index) => {
            const rowGroupKeys = groupKeys.slice(0, groupIndex + 1);
            const rowSpanList = generateRowSpanList(vid_7muz277z0f_options.value(), rowGroupKeys,vid_7muz277z0f_props.editRecordMap);
            return { rowSpan: rowSpanList[index], style: { 'text-align': contentAlign, ...(customCellStyle || {}) } };
          };
        }
      })
    }

    // 格式化column：增加合并单元格的配置，以及自定义样式
    formatColumns(columnList);

    return columnList;
  });


    // 表格分页器信息：将总条数信息加到基础分页信息中
    const vid_7muz277z0f_pagination = computed(() => {
      const { totalNumber, rt_tableConfig } = vid_7muz277z0f_props;
      const {
        enable = true,
        current= 1,
        pageSize= 10,
        showSizeChanger= false,
        pageSizeOptions= '10,20,30,40',
        showTotal= false,
        showQuickJumper= false,
        simple= false,
        hideOnSinglePage= false,
      } = rt_tableConfig.pagination ?? {};
      const { size = 'default', layout='bottomRight' } = rt_tableConfig?.style?.paginationStyle || {}
      let info = {};
      if(enable) {
        info = {
          total: totalNumber || 0,
          pageSize,
          size,
          simple,
          current,
          showSizeChanger,
          pageSizeOptions: pageSizeOptions.split(','),
          showQuickJumper,
          hideOnSinglePage,
          position: [layout],
        }
        if(showTotal) {
          info.showTotal = (total, range) => `共${total}个项目，第${current}/${Math.ceil(total / pageSize)}页`
        }
        return info;
      }
      return false;
    })


        // 补充一个watch，用于监听删除最后一页最后一条数据的情况，然后重新加载数据
        watch(() => dataConnector_conn_enn13w92ad_response?.value?.data?.dataList, (newValue) => {
          const current = vid_7muz277z0f_props.rt_tableConfig.pagination.current;
          if (!newValue?.length && current > 1) {
            vid_7muz277z0f_props.rt_tableConfig.pagination.current = current - 1;
            dataConnector_conn_enn13w92ad();
          }
        });
  const vid_t5g2fxyxpm_stopWatchExpandedKeys = watch(
    () => vid_t5g2fxyxpm_options_raw.value,
    () => {

      traversalTreeStructure(vid_t5g2fxyxpm_options_raw.value, (item) => {
        vid_t5g2fxyxpm_props.expandedKeys.push(item.id);
      });

      vid_t5g2fxyxpm_stopWatchExpandedKeys()
    }
  );

      const vid_t5g2fxyxpm_style = computed(() => {
        return { "--background-hover": "#F5F5F5", "--background-select": "#EBF1FF" }
      });


      const vid_t5g2fxyxpm_style_span = computed(() => {
        return { marginLeft: '2px', color: "#595959" }
      });
  /**
   * 生成分组字段合并单元格的配置：返回值为一个数字数组，数组里面每一项即为该字段当前行的rowSpan配置
   * @param {Array} 表格中的数据
   * @param {Array} 当前分组字段的列表，注：为了保证优先级低的字段合并后是优先级高的字段合并后的子集，需要把比该字段优先级高的分组字段按顺序放在该字段前面；例如：所有分组字段列表为['grade', 'age', 'score']，要生成age字段的合并单元格配置，则该参数需要传['grade', 'age']
   * @returns {Array} 该字段合并单元格的rowSpan配置，例：[1, 1, 2, 0, 1]
   */
  function generateRowSpanList(dataSource, groupKeys,editRecordMap) {
    if (!dataSource || !dataSource.length) {
      return [];
    }

    const rowSpanList = [];

    // 判断单元格是否需要合并的临时值：使用表格数据最后一行进行初始化（表格数据的遍历是倒序进行的）
    let tempValue = getGroupValue(dataSource[dataSource.length - 1], groupKeys);
    // 记录需要合并单元格的数量
    let tempValueCount = 0;

    // 倒序遍历数组，以保证使用最前面一条数据合并单元格
    for (let index = dataSource.length - 1; index >= 0; index--) {
      rowSpanList[index] = 0;
      const groupValue = getGroupValue(dataSource[index], groupKeys);
      // 如果当前行的分组数据跟上一行一致，则将标记数量加一；否则将标记数量的当前值赋给上一条数据，并重置临时值和标记数量
      if(editRecordMap && editRecordMap[index]){ //如果当前行是编辑行
        rowSpanList[index + 1] = tempValueCount;
        tempValue = "";
        tempValueCount=1;
      }
      else if (groupValue === tempValue) {
        tempValueCount++;
      } else {
        rowSpanList[index + 1] = tempValueCount;
        tempValue = groupValue;
        tempValueCount = 1;
      }

      // 遍历到最后一行，将当前的标记数量赋给当前行
      if (index === 0) {
        rowSpanList[index] = tempValueCount;
      }
    }

    return rowSpanList;
  }

  /**
   * 根据分组字段列表生成当前数据行的分组值
   * @param {Object} 当前数据行
   * @param {Array} 分组字段列表
   * @returns {String} 拼装的当前数据行的分组值，例：record为{ age: 7, grade: '一年级', name: '小赵' }，groupKeys为['grade', 'age']，则拼装后的返回值为'一年级__$__7'
   */
  function getGroupValue(record, groupKeys) {
    const groupValueList = [];
    groupKeys.forEach(groupKey => {
      let val = record[groupKey]
      if (isArray(val)) {
        val = record[groupKey + '_labels']
      } else if (isObject(val)) {
        console.warn('警告表格列数据为object，可能导致行合并异常，列key为：'+ groupKey,val)
      }
      groupValueList.push(`${val}`);
    });
    return groupValueList.join('__$__');
  }

  /**
   * 将列表数据转换成树状数据
   * @param {Array} 原始的列表数据
   * @param {String|Number} 列表数据的唯一key
   * @param {String|Number} 列表数据转成树时的父级id
  */
  function convertListToTree(list, key, parentKey) {
    const clonedList = cloneDeep(list || []);

    // 遍历列表数据，生成树节点的map：key为列表数据的唯一key，value为列表当前行的数据
    const treeNodeMap = {};
    clonedList.forEach(item => {
      treeNodeMap[item[key]] = item;
    });

    const treeDataList = [];
    clonedList.forEach(item => {
      // 如果当前行数据的父级id不在树节点的map中，则当前数据为根节点数据，将其加入最终树形数据的列表；否则将其放入其父节点数据的children中
      if (!treeNodeMap[item[parentKey]]) {
        treeDataList.push(item);
      } else {
        if (!treeNodeMap[item[parentKey]].children) {
          treeNodeMap[item[parentKey]].children = [];
        }
        treeNodeMap[item[parentKey]].children.push(item);
      }
    });

    return treeDataList;
  }

  /**
   * 表格列宽伸缩处理，使用indexedDB缓存伸缩后的列宽度
   */
  const handleResizeColumn = (w, col, vid) => {
    col.width = w;
    
    UserTableRecords.saveTableRecords(col, localGet('al__UID'), vid)
    
  }
  /* ========================== 不同组件自定义的处理逻辑 ========================== */


  // ================================定制化逻辑========================================
</script>
<style lang="less" scoped>
  .page_root {
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color:#F0F2F5;
  }
  .page_root :deep(.@{ant-prefix}-spin-nested-loading),
  .page_root :deep(.@{ant-prefix}-spin-container)
   {
      height: 100%;
  }
  .page_root :deep(.@{ant-prefix}-spin-container .@{ant-prefix}-table-wrapper)
   {
      display: flex;
      flex-flow: column nowrap;
      justify-content: flex-start;
  }
  .page_root :deep(.@{ant-prefix}-table)
   {
    flex: auto;
    overflow: auto;
  }
  .table-moreBtn_down {
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis; width: 100px;
  }

  .table-moreBtn_menu :deep(.table-moreBtn_menu-item):hover {
    background: #ebf1ff;
  }

  /*  表格树结构样式处理，展开按钮层级增加*/
  :deep(.@{ant-prefix}-table-row-expand-icon) {
    z-index: 1;
  }
  /*  表格树结构 由于每个表格项采用自定义组件，使用绝对定位布局，开启树结构导致显示异常，暂时使用层级定位位置 */
  :deep(.@{ant-prefix}-table-row-level-1 .@{ant-prefix}-table-cell-with-append .cell-wrapper-left) {
    left: 15px !important;
    width: calc(100% - 15px);
  }
  :deep(.@{ant-prefix}-table-row-level-2 .@{ant-prefix}-table-cell-with-append .cell-wrapper-left) {
    left: 30px !important;
    width: calc(100% - 30px);
  }
  :deep(.@{ant-prefix}-table-row-level-3 .@{ant-prefix}-table-cell-with-append .cell-wrapper-left) {
    left: 45px !important;
    width: calc(100% - 45px);
  }
  :deep(.@{ant-prefix}-table-row-level-4 .@{ant-prefix}-table-cell-with-append .cell-wrapper-left) {
    left: 60px !important;
    width: calc(100% - 60px);
  }

  /* 穿梭框改变默认样式，为根据组件样式控制左右栏宽度。 */
  :deep(.@{ant-prefix}-transfer-list)
   {
      height: 100%;
      width: 50%;
  }
  .vid_7g8fn88587{
      overflow-x:auto;
      overflow-y:auto;
      margin-bottom:0px;
      padding-bottom:0px
  }
  .vid_32wupwqleq :deep(.@{ant-prefix}-table-thead) > tr {
      height: 40px;
  }
  .vid_32wupwqleq :deep(.@{ant-prefix}-table-thead) > tr > th {
    background: #3875FF;
    font-size: 14px;
    font-family: arial, helvetica, "microsoft yahei";
    font-weight: 600;
    color: #FFFFFF;
    border-bottom:1px solid #D9D9D9;
    padding: 8px 16px;
  }
  .vid_32wupwqleq :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container .@{ant-prefix}-table-thead > tr:not(:last-child) > th {
    border-bottom:1px solid #D9D9D9;
  }
  .vid_32wupwqleq :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container .@{ant-prefix}-table-thead > tr > th {
    border-right:1px solid #D9D9D9;
  }
  /* 将表格自带的左边框取消，方便设置表头边框颜色和内容边框颜色 */
  .vid_32wupwqleq :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container {
    border-left: none;
  }
  .vid_32wupwqleq :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container .@{ant-prefix}-table-thead > tr > th[colstart='0']:first-child {
    border-left:1px solid #D9D9D9;
  }
  /* 开启粘性表头后，表格结构会发生变化 需另外处理 */
  .vid_32wupwqleq :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container .@{ant-prefix}-table-header table {
    border-top:1px solid #D9D9D9;
  }
  .vid_32wupwqleq :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container > .@{ant-prefix}-table-content > table {
    border-top:1px solid #D9D9D9;
  }
  .vid_32wupwqleq :deep(.@{ant-prefix}-table-thead) > tr > th:not(:last-child):not(.@{ant-prefix}-table-selection-column):not(.@{ant-prefix}-table-row-expand-icon-cell):not([colspan])::before {
      background: #D9D9D9;
      width: 1px;
  }
  .vid_32wupwqleq :deep(.@{ant-prefix}-table-cell-scrollbar) {
      box-shadow: none;
  }
  .vid_32wupwqleq :deep(.@{ant-prefix}-table-tbody) tr {
    height: 40px;
  }
  .vid_32wupwqleq :deep(.@{ant-prefix}-table-tbody) tr > td {
    font-size: 14px;
    font-family: arial, helvetica, "microsoft yahei";
    font-weight: 400;
    color: #262626;
    border-bottom:1px solid #D9D9D9;
    padding: 0 16px;
    word-break: break-all;
    .cell-wrapper {
      padding: 0 16px;
    }
  }

  .vid_32wupwqleq :deep(.@{ant-prefix}-table-tbody) tr > td .cell-wrapper {
    padding: 0 16px;
  }
  .vid_32wupwqleq :deep(.@{ant-prefix}-table-empty .@{ant-prefix}-table-tbody tr > td) {
    padding: 0;
  }
  .vid_32wupwqleq :deep(.@{ant-prefix}-table-tbody) tr > td .@{ant-prefix}-btn {
    padding: 0 30px 0 0;
  }
  .vid_32wupwqleq :deep(.@{ant-prefix}-table-tbody) tr > td .@{ant-prefix}-btn:last-child {
    padding: 0;
  }
  .vid_32wupwqleq :deep(.table-striped-odd) td {
    background-color: #FFFFFF;
  }
  .vid_32wupwqleq :deep(.table-striped-even) td {
    background-color: #F8FAFC;
  }
  .vid_32wupwqleq :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container .@{ant-prefix}-table-tbody tr > td {
    border-right:1px solid #D9D9D9;
  }
  .vid_32wupwqleq :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container .@{ant-prefix}-table-tbody tr > td:first-child {
    border-left:1px solid #D9D9D9;
  }
  .vid_32wupwqleq{
      width:100%
  }
  .vid_32wupwqleq:active{
      width:100%
  }
  .vid_32wupwqleq:focus{
      width:100%
  }
  .vid_32wupwqleq:hover{
      width:100%
  }
  .vid_hofoolfsxh{
      height:100%;
      box-shadow:0px 0px 0px 0px #FFFFFF
  }
  .vid_zib6f6eiui{
      height:100%;
      overflow-x:auto;
      overflow-y:auto;
      display:block;
      padding-bottom:16px;
      background-color:#FFFFFF
  }
  .vid_u87cviwdjq{
      padding-top:16px;
      padding-right:24px;
      padding-bottom:16px;
      padding-left:24px;
      background-color:#FFFFFF;
      box-shadow:0px 0px 0px 0px
  }
  .vid_egh99ca41r{
      display:flex;
      flex-wrap:undefined;
      background-color:#FFFFFF;
      border-bottom-color:#FFFFFF
  }
  .vid_e0486mazuj{
      margin-left:24px;
      background-color:#3875FF;
      border-radius:2px
  }
  .vid_4bsd11um9o{
      margin-left:16px;
      border-radius:2px
  }
  .vid_4fgjepmwzb{
      margin-bottom:0px
  }
  .vid_bp126nku1k{
      width:100%
  }
  .vid_tjdkn9kyp0{
      margin-right:16px;
      margin-bottom:0px
  }
  .vid_h1q7gdhl9y{
      width:100%
  }
  .vid_j2ouswmj9h{
      margin-right:16px;
      margin-bottom:0px
  }
  .vid_6xij7n7dth :deep(input) {
        cursor: undefined;
      }
  .vid_6xij7n7dth{
      width:100%;
      box-shadow:0px 0px 0px 0px
  }
  .vid_0ez399cv7q{
      height:16px;
      background-color:#F0F2F5;
      box-shadow:0px 0px 0px 0px
  }
  .vid_7muz277z0f :deep(.@{ant-prefix}-table-thead) > tr {
      height: 40px;
  }
  .vid_7muz277z0f :deep(.@{ant-prefix}-table-thead) > tr > th {
    background: #3875FF;
    font-size: 14px;
    font-family: arial, helvetica, "microsoft yahei";
    font-weight: 600;
    color: #FFFFFF;
    border-bottom:1px solid #D9D9D9;
    padding: 8px 16px;
  }
  .vid_7muz277z0f :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container .@{ant-prefix}-table-thead > tr:not(:last-child) > th {
    border-bottom:1px solid #D9D9D9;
  }
  .vid_7muz277z0f :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container .@{ant-prefix}-table-thead > tr > th {
    border-right:1px solid #D9D9D9;
  }
  /* 将表格自带的左边框取消，方便设置表头边框颜色和内容边框颜色 */
  .vid_7muz277z0f :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container {
    border-left: none;
  }
  .vid_7muz277z0f :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container .@{ant-prefix}-table-thead > tr > th[colstart='0']:first-child {
    border-left:1px solid #D9D9D9;
  }
  /* 开启粘性表头后，表格结构会发生变化 需另外处理 */
  .vid_7muz277z0f :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container .@{ant-prefix}-table-header table {
    border-top:1px solid #D9D9D9;
  }
  .vid_7muz277z0f :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container > .@{ant-prefix}-table-content > table {
    border-top:1px solid #D9D9D9;
  }
  .vid_7muz277z0f :deep(.@{ant-prefix}-table-thead) > tr > th:not(:last-child):not(.@{ant-prefix}-table-selection-column):not(.@{ant-prefix}-table-row-expand-icon-cell):not([colspan])::before {
      background: #D9D9D9;
      width: 1px;
  }
  .vid_7muz277z0f :deep(.@{ant-prefix}-table-cell-scrollbar) {
      box-shadow: none;
  }
  .vid_7muz277z0f :deep(.@{ant-prefix}-table-tbody) tr {
    height: 40px;
  }
  .vid_7muz277z0f :deep(.@{ant-prefix}-table-tbody) tr > td {
    font-size: 14px;
    font-family: arial, helvetica, "microsoft yahei";
    font-weight: 400;
    color: #262626;
    border-bottom:1px solid #D9D9D9;
    padding: 0 16px;
    word-break: break-all;
    .cell-wrapper {
      padding: 0 16px;
    }
  }

  .vid_7muz277z0f :deep(.@{ant-prefix}-table-tbody) tr > td .cell-wrapper {
    padding: 0 16px;
  }
  .vid_7muz277z0f :deep(.@{ant-prefix}-table-empty .@{ant-prefix}-table-tbody tr > td) {
    padding: 0;
  }
  .vid_7muz277z0f :deep(.@{ant-prefix}-table-tbody) tr > td .@{ant-prefix}-btn {
    padding: 0 30px 0 0;
  }
  .vid_7muz277z0f :deep(.@{ant-prefix}-table-tbody) tr > td .@{ant-prefix}-btn:last-child {
    padding: 0;
  }
  .vid_7muz277z0f :deep(.table-striped-odd) td {
    background-color: #FFFFFF;
  }
  .vid_7muz277z0f :deep(.table-striped-even) td {
    background-color: #F8FAFC;
  }
  .vid_7muz277z0f :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container .@{ant-prefix}-table-tbody tr > td {
    border-right:1px solid #D9D9D9;
  }
  .vid_7muz277z0f :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container .@{ant-prefix}-table-tbody tr > td:first-child {
    border-left:1px solid #D9D9D9;
  }
  .vid_7muz277z0f{
      padding-top:24px;
      padding-right:24px;
      padding-bottom:24px;
      padding-left:24px;
      background-color:#FFFFFF
  }
  .vid_7muz277z0f:active{
      width:100%
  }
  .vid_7muz277z0f:focus{
      width:100%
  }
  .vid_7muz277z0f:hover{
      width:100%
  }
  .vid_amn8b36obs{
      height:100%;
      overflow-x:auto;
      overflow-y:auto;
      display:block;
      padding-top:16px;
      padding-right:24px;
      padding-bottom:16px;
      padding-left:24px;
      background-color:#FFFFFF;
      box-shadow:0px 0px 0px 0px ;
      border-top-style:none;
      border-top-width:16px;
      border-top-color:#8C8C8C;
      border-right-color:#F0F2F5
  }
  .vid_2jde4eeige{
      margin-bottom:16px
  }
  .vid_y7vcxwycjn{
      margin-top:8px;
      font-family:arial, helvetica, "microsoft yahei";;
      font-weight:600;
      color:rgba(38, 38, 38, 1);
      font-size:16px;
      line-height:16px;
      border-left-style:none;
      border-left-width:4px;
      border-left-color:#3875FF
  }
  .vid_e57pxzj5tq{
      margin-bottom:16px
  }
  .vid_kjy9opxgxl{
      width:100%;
      border-color:#CCCCCC;
      border-radius:4px
  }
  .vid_t5g2fxyxpm :deep(span) {
        color: undefined;
      }

  .page_root {
    overflow: hidden !important;
  }

  :deep(.@{ant-prefix}-table-empty .@{ant-prefix}-table-tbody tr > td) {
   padding: 0;
  }
</style>